home *** CD-ROM | disk | FTP | other *** search
- on keyDown
- global gRobotAlive, gCurrentSite
- if charToNum(the key) = 6 then
- set gRobotAlive to 1
- ShowSite(gCurrentSite, 0, 0)
- exit
- end if
- if (the key = "q") or (the key = "Q") then
- ShowSite("GameStop", 23, 0)
- wait(120)
- repeat with count = 1 to 48
- puppetSprite(count, 0)
- end repeat
- go("Black")
- updateStage()
- wait(10)
- quit()
- end if
- end
-
- on ProcessUIClick thisSprite
- global cArmSprite, myCast
- if thisSprite = (cArmSprite + 1) then
- ExitUserInterface()
- end if
- if thisSprite = (cArmSprite + 5) then
- set thisCast to "Save_2"
- set myNewCast to getaProp(myCast, thisCast)
- set the castNum of sprite thisSprite to myNewCast
- updateStage()
- myPlaySound("GlyphSound")
- wait(15)
- set thisCast to "Save_1"
- set myNewCast to getaProp(myCast, thisCast)
- set the castNum of sprite thisSprite to myNewCast
- updateStage()
- end if
- if thisSprite = (cArmSprite + 6) then
- set thisCast to "Start_2"
- set myNewCast to getaProp(myCast, thisCast)
- set the castNum of sprite thisSprite to myNewCast
- updateStage()
- myPlaySound("GlyphSound")
- wait(15)
- set thisCast to "Start_1"
- set myNewCast to getaProp(myCast, thisCast)
- set the castNum of sprite thisSprite to myNewCast
- updateStage()
- buildCastIndex()
- InitNewGame()
- SetUpEngine()
- SetUpWorld()
- UpdateHUDWeapon()
- ShowSite(gCurrentSite, 0, EMPTY)
- end if
- end
-
- on ShowUserInterface
- global cPanFirstRegion, gUserInterfaceOn, cArmSprite, cArmSpriteMax, myCast, gNeutralCursor, oldBrightness, oldBrightAdjust, gBrightness, gBrightAdjust
- set oldBrightness to gBrightness
- set oldBrightAdjust to gBrightAdjust
- set gBrightness to 0
- set gBrightAdjust to 0
- UpdatePalettes()
- go("UserInterface")
- set gUserInterfaceOn to 1
- cardSound()
- repeat with thisSprite = cArmSprite + 1 to cArmSpriteMax + cArmSprite - 1
- spriteBox(thisSprite, 0, 500, 1, 501)
- end repeat
- set UserRects to "UserBackground, 0, 0, 640, 390, 0"
- put RETURN & "Credits_1 ,345, 111, 617, 164, 0" after UserRects
- put RETURN & "Load_1,30, 111, 302, 164, 0" after UserRects
- put RETURN & "Quit_1,345, 182, 617, 235, 0" after UserRects
- put RETURN & "Save_1,30, 182, 302, 235, 0" after UserRects
- put RETURN & "Start_1,30, 41, 302, 94, 0" after UserRects
- set count to 0
- repeat with thisSprite = cArmSprite + 1 to cArmSprite + 6
- set count to count + 1
- puppetSprite(thisSprite, 1)
- set the cursor of sprite thisSprite to gNeutralCursor
- set thisCast to item 1 of line count of UserRects
- set myNewCast to getaProp(myCast, thisCast)
- set the castNum of sprite thisSprite to myNewCast
- set temp.left to value(item 2 of line count of UserRects)
- set temp.top to value(item 3 of line count of UserRects)
- set temp.right to value(item 4 of line count of UserRects)
- set temp.bottom to value(item 5 of line count of UserRects)
- spriteBox(thisSprite, temp.left, temp.top, temp.right, temp.bottom)
- set the ink of sprite thisSprite to value(item 6 of line count of UserRects)
- end repeat
- puppetTransition(5, 1, 16, 1)
- updateStage()
- end
-
- on ExitUserInterface
- global gUserInterfaceOn, cArmSprite, cArmSpriteMax, gInvArmState, oldBrightness, gBrightness, oldBrightAdjust, gBrightAdjust
- set gUserInterfaceOn to 0
- set gBrightness to oldBrightness
- set gBrightAdjust to oldBrightAdjust
- UpdatePalettes()
- cardSound()
- repeat with thisSprite = cArmSprite to cArmSprite + cArmSpriteMax
- spriteBox(thisSprite, 0, 500, 1, 501)
- end repeat
- puppetTransition(6, 1, 16, 1)
- set the itemDelimiter to ","
- go("Motion")
- end
-